﻿using System.IO;
using log4net.Config;

namespace Mrb.Utils
{
    public static class Logging
    {
        public static void Initialize(ILoggingInfo loggingInfo)
        {
            XmlConfigurator.ConfigureAndWatch(new FileInfo(loggingInfo.FilePath));
        }

        public static void Initialize()
        {
            Initialize(LoggingInfo.Default());
        }
    }
}